package com.example.elemboot.Dao;

import com.example.elemboot.Entity.Orders;
import com.example.elemboot.Entity.User;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface IOrders extends CrudRepository<Orders,Integer> {
    List<Orders> findOrdersByUser(User user);
}
